package com.common.sp;


import android.util.Log;

/**
 * 所有小区的信息
 * Created by wgf on 2016/7/18 0018.
 *
 * @author wgf
 * @since v3.8
 */
public class CommSp2 {

    /** 获取当前小区的物业电话(选择小区的时候返回的) */
    public static String getCommPmPhone() {
        return SharedPreferUtil.getInstance().getString("commPmPhone", "");
    }

    /** 设置当前小区的物业电话 */
    public static void setCommPmPhone(String commPmPhone) {
        SharedPreferUtil.getInstance().putString("commPmPhone", commPmPhone);
    }

    /** 获取橙子生活客服电话（一个废弃的接口） */
    public static String getCustomerServicePhone() {
        return SharedPreferUtil.getInstance().getString("customerServicePhone", "");
    }

    /** 获取橙子生活客服电话 */
    public static void setCustomerServicePhone(String commPmPhone) {
        SharedPreferUtil.getInstance().putString("customerServicePhone", commPmPhone);
    }

    public static String getCityName() {
        return SharedPreferUtil.getInstance().getString("cityName", "");
    }

    public static void setCityName(String cityName) {
        SharedPreferUtil.getInstance().putString("cityName", cityName);
    }

    /**
     * @return 获取用户经度信息
     */
    public static String getLongitude() {
        return SharedPreferUtil.getInstance().getString("longitude", "");
    }

    public static void setLongitude(String longitude) {
        SharedPreferUtil.getInstance().putString("longitude", longitude);
    }

    /**
     * @return 获取用户纬度信息
     */
    public static String getLatitude() {
        return SharedPreferUtil.getInstance().getString("latitude", "");
    }

    public static void setLatitude(String latitude) {
        SharedPreferUtil.getInstance().putString("latitude", latitude);
    }

    /** 获取当前小区的ID */
    public static String getCommID() {
        String commID=SharedPreferUtil.getInstance().getString("commID", "");
        return commID;
    }

    /** 当前小区的ID */
    public static void setCommID(String commID) {
        Log.e("TAG","getCommID() key:="+commID);
        SharedPreferUtil.getInstance().putString("commID", commID);
    }

    public static void setCommName(String commName) {
        SharedPreferUtil.getInstance().putString("commName", commName);
    }

    /** 当前小区的名称 */
    public static String getCommName() {
        return SharedPreferUtil.getInstance().getString("commName", "");
    }

    /** 获取房号ID */
    public static String getApartmentID() {
        return SharedPreferUtil.getInstance().getString("apartmentID", "");
    }

    public static void setApartmentID(String apartmentID) {
        SharedPreferUtil.getInstance().putString("apartmentID", apartmentID);
    }

    /** 当前小区的街道ID */
    public static String getDistrictID() {
        return SharedPreferUtil.getInstance().getString("districtID", "");
    }

    public static void setDistrictID(String districtID) {
        SharedPreferUtil.getInstance().putString("districtID", districtID);
    }

    public static String getStreet() {
        return SharedPreferUtil.getInstance().getString("street", "");
    }

    public static void setStreet(String street) {
        SharedPreferUtil.getInstance().putString("street", street);
    }

}
